package project.menu.ordermenu.listallorders;

import controllers.IAutoservice;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;

public class ListAllOrders implements IMenuItem {

	private String name = "Get list all orders";
	private final Integer id = 1;
	private static IMenu submenu;	
	private Navigator navigator;
	
	public ListAllOrders(){
		navigator=Navigator.getInstance();
	}
	
	
	public Integer getId() {
		return id;
	}
	

	
	public String getNameItem() {
		return name;
	}

	

	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice autoservice) {
		navigator.drawMenu(submenu);

	}

}
